package com.linjacy.httpproject.config;

import com.linjacy.httpproject.interceptor.MybatisQueryInterceptor;
import com.linjacy.httpproject.interceptor.TableShardInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MybatisConfig {

    @Bean
    public TableShardInterceptor tableShardInterceptor(){
        return new TableShardInterceptor();
    }

    @Bean
    public MybatisQueryInterceptor mybatisQueryInterceptor(){
        return new MybatisQueryInterceptor();
    }

}
